-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port Profile Followers/Follows to RQ #1893
Conversation
if (!profile.viewer?.following) { | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a split second where profile.viewer.following
can be set to pending
, and this fn should return early in that case too. Rn we're reusing this prop that's typically either undefined | URI
, so that we know a follow request is in-flight.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this is based on the pattern in ProfileHeader
so I'd rather align with that. If it's wrong we should fix it in both places — and probably many more places because ProfileHeader
uses a similar pattern for a bunch of other handlers. So I'd keep it out of scope of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to tracker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good to me!
03ec8fb
to
fb8046c
Compare
fb8046c
to
c487e72
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
ProfileFollowers
ProfileFollows
FollowButton
useFollowProfile
SuggestedFollow